/**
 * ReportGear(2011)
 */
package net.abbp.report.model.headerfooter;

import java.util.ArrayList;
import java.util.List;

import net.abbp.core.utils.ListUtils;

import com.reportgear.core.api.BaseObject;

/**
 * 报表页脚页眉-核心信息
 * 
 * @version 1.0 2011-4-23
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since Report 1.0
 */
public class ReportHFCore extends BaseObject {
    private List<HFElement> leftList = new ArrayList<HFElement>();

    private List<HFElement> centerList = new ArrayList<HFElement>();

    private List<HFElement> rightList = new ArrayList<HFElement>();

    private double height;

    public List<HFElement> getLeftList() {
        return this.leftList;
    }

    public void setLeftList(List<HFElement> leftList) {
        this.leftList = leftList;
    }

    public List<HFElement> getCenterList() {
        return this.centerList;
    }

    public void setCenterList(List<HFElement> centerList) {
        this.centerList = centerList;
    }

    public List<HFElement> getRightList() {
        return this.rightList;
    }

    public void setRightList(List<HFElement> rightList) {
        this.rightList = rightList;
    }

    @Override
    public ReportHFCore clone() {
        ReportHFCore result = (ReportHFCore) super.clone();

        result.leftList = ListUtils.copyList(this.leftList);
        result.centerList = ListUtils.copyList(this.centerList);
        result.rightList = ListUtils.copyList(this.rightList);

        return result;
    }

    /**
     * 设置高度
     * 
     * @param height
     *            高度
     */
    public void setHeight(double height) {
        this.height = height;
    }

    /**
     * 获取高度
     * 
     * @return 高度
     */
    public double getHeight() {
        return height;
    }
}